#include "local.h"

class light {
public:
	vector<Point> contour;
	double length_width_ratio;
	double relative_area_ratio;

	Mat approxPolyDP_data;
	int approxPolyDP_count;

	RotatedRect rect;
	double rect_length;
	double rect_width;
	double slope_of_width;

	light();
	light(vector<Point> input_contour);

	void count_date();

private:
	void count_length_width_ratio();
	void count_relative_area_ratio();
	void count_approxPolyDP_count();
	void count_slope_of_width();
};